/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Gao zhao xu
 * Date: 2023-06-10
 * Time: 17:25
 */
public class OutClass {
    public int data1 = 10;
    private int data2 = 20;
    private static int data3 = 30;
    //实例内部类：
    class InnerClass {
        public int data1 = 100;
        public int data4 = 40;
        private int data5 = 50;
        public void testInner(){
            System.out.println(OutClass.this.data1);
            System.out.println(data1);
            System.out.println(data2);
            System.out.println(data3);
            System.out.println(data4);
            System.out.println(data5);
        }
    }
    public static void main(String[] args) {
        OutClass.InnerClass innerClass = new OutClass().new InnerClass();
        innerClass.testInner();
    }
}